package com.zhouxiaoge.mongo.documents;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 周小哥
 * <p>
 * 用户文档
 */

@Data
@Document("user")
public class User {

    @Id
    private Long id;

    private String name;

    private int age;

    private Address address;

}
